package net.wxxr.thread.pool;

import net.wxxr.http.interfaces.ITag;
import net.wxxr.http.request.HttpBaseRequest;


/**
 * 任务
 * @author yuanwenfei
 *
 * @param <T>
 */
public class Task<T> {
//请求参数
private HttpBaseRequest request;
//请求TAG
	private ITag<T> tag;
	// 希望返回得到的数据类型
	private Class<T> clazz;
	
	public Task(HttpBaseRequest request, ITag<T> tag, Class<T> clazz) {
		this.request = request;
		this.tag = tag;
		this.clazz = clazz;
	}
	
	public final HttpBaseRequest getRequest() {
		return request;
	}

	public final void setRequest(HttpBaseRequest request) {
		this.request = request;
	}

	public ITag<T> getTag() {
		return tag;
	}

	public void setTag(ITag<T> tag) {
		this.tag = tag;
	}

	public Class<T> getClazz() {
		return clazz;
	}

	public void setClazz(Class<T> clazz) {
		this.clazz = clazz;
	}
	
}
